package com.jianggy.chainofrespon.basicchain;

/**
 * @author 江广友
 * @time 2018年8月10日 下午5:05:03
 * @description
 */
public class App {
	public static void main(String[] args) {
		Handler aHandler = new AHandler();
		Handler bHandler = new BHandler();
		Handler cHandler = new CHandler();
		aHandler.setNextHandler(bHandler);
		bHandler.setNextHandler(cHandler);
		Request request = new Request();
		request.setStr("sdfsdafsdafdsagdfgfafdsfasfdafdagfadgfddfbbbbb");
		aHandler.handler(request);
		System.out.println(request.getStr());
	}
}
